package lol.oxguy3.droidpong;

import android.content.Context;

public abstract class PongEntity {
	
	Context cxt;
	PongView view;
	int posX, posY, velX, velY;
	int color;
	int screenWidth, screenHeight;
	
	public PongEntity(Context c, PongView v) {
		this(c, v, 50, 50, 5, 5, 0xffffffff);
	}
	
	public PongEntity(Context c, PongView v, int px, int py, int vx, int vy, int col) {
		cxt = c;
		view = v;
		posX = px;
		posY = py;
		velX = vx;
		velY = vy;
		color = col;
		
		screenHeight = view.getHeight();
		screenWidth = view.getWidth();
	}
	
	public void onMove() { }
	
	public int getPosX() {
		return posX;
	}
	
	public int getPosY() {
		return posY;
	}
	
	public int getVelX() {
		return velX;
	}
	
	public int getVelY() {
		return velY;
	}
	
	public int getColor() {
		return color;
	}
	
	public void setPosX(int px) {
		posX = px;
	}
	
	public void setPosY(int py) {
		posY = py;
	}
	
	public void setVelX(int vx) {
		velX = vx;
	}
	
	public void setVelY(int vy) {
		velY = vy;
	}
	
	public void setColor(int col) {
		color = col;
	}
}
